Pre-commit hook